﻿// dllmain.cpp : 定义 DLL 应用程序的入口点。
#include "pch.h"
#include <stddef.h>
#include <stdint.h>

//参考路径：https://learn.microsoft.com/zh-cn/cpp/build/exporting-from-a-dll-using-declspec-dllexport?view=msvc-170
#define DllExport   __declspec(dllexport)

BOOL APIENTRY DllMain(HMODULE hModule,
	DWORD  ul_reason_for_call,
	LPVOID lpReserved
)
{
	switch (ul_reason_for_call)
	{
	case DLL_PROCESS_ATTACH:
	case DLL_THREAD_ATTACH:
	case DLL_THREAD_DETACH:
	case DLL_PROCESS_DETACH:
		break;
	}
	return TRUE;
}

DllExport int DevSetTopBottom(int& nTop, int& nBottom)
{
	/*devapi_return_val_if_fail(g_DevManager != nullptr, DEV_STATUS_NOT_INIT);

	if (nTop < 0 && nBottom < 0)
	{
		nTop = pDeviceCfg.OCTTop;
		nBottom = pDeviceCfg.OCTBottom;
	}
	else
	{
		g_DevManager->setOCTTopBottom(nTop, nBottom);
	}*/

	return 1;
}
